var myConsultRoomPlugin = {
    createEvent: function(location,  successCallback, errorCallback,patguid,pic,name,room,docguid) {

        cordova.exec(
            successCallback, // success callback function
            errorCallback, // error callback function
            'MyConsultRoomPlugin', // mapped to our native Java class called "CalendarPlugin"
            location, // with this action name
            [{                  // and this array of custom arguments to create our entry
                "Pic_url":pic,
                "Pic_name":name,
                "Doc_room":room,
                "Pat_guid":patguid,
                "DocGuid":docguid,
            }]
        );
    }
}

var myConsultRoomPlugin_receive={
    createEvent:function(location,successCallback, errorCallback,msg,content_imgSrc,pic,name,guid) {

        cordova.exec(
            successCallback, // success callback function
            errorCallback, // error callback function
            'MyConsultRoomPlugin', // mapped to our native Java class called "CalendarPlugin"
            location, // with this action name
            [{                  // and this array of custom arguments to create our entry
                "Pic_url":pic,
                "Pic_name":name,
                "ReceiveMsg":msg,
                "PatGuid":guid,
                "Content_imgSrc_url":content_imgSrc,
            }]
        );
    }
}

var myConsultRoomPlugin_openvideo={
     createEvent:function(location,successCallback, errorCallback) {

         cordova.exec(
             successCallback, // success callback function
             errorCallback, // error callback function
             'MyConsultRoomPlugin', // mapped to our native Java class called "CalendarPlugin"
             location, // with this action name
             [{                  // and this array of custom arguments to create our entry
//                 "Pic_url":pic,
//                 "Pic_name":name,
//                 "ReceiveMsg":msg,
             }]
         );
     }
 }

var  myConsultRoomPlugin_closevideo={
     createEvent:function(location,successCallback, errorCallback) {
         cordova.exec(
             successCallback, // success callback function
             errorCallback, // error callback function
             'MyConsultRoomPlugin', // mapped to our native Java class called "CalendarPlugin"
             location, // with this action name
             [{
             }]
         );
     }

}

var myConsultRoomPlugin_docinfo={
     createEvent:function(location,successCallback, errorCallback) {

         cordova.exec(
             successCallback, // success callback function
             errorCallback, // error callback function
             'MyConsultRoomPlugin', // mapped to our native Java class called "CalendarPlugin"
             location, // with this action name
             [{                  // and this array of custom arguments to create our entry
//                 "Pic_url":pic,
//                 "Pic_name":name,
//                 "ReceiveMsg":msg,
             }]
         );
     }
 }

 var myConsultRoomPlugin_other_pat_exit={
      createEvent:function(location,successCallback, errorCallback,patguid,patname) {

          cordova.exec(
              successCallback, // success callback function
              errorCallback, // error callback function
              'MyConsultRoomPlugin', // mapped to our native Java class called "CalendarPlugin"
              location, // with this action name
              [{                  // and this array of custom arguments to create our entry
                  "other_pat_guid":patguid,
                  "other_pat_name":patname,
              }]
          );
      }
  }
